<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<style type="text/css">
		body{
			background-image:url(static/img/bg.png);
		}
	</style>
</head>
<body class="body">
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">				
				<a class="brand" href="">Kaishengit PMS</a>
			</div>		
		</div>	
	</div>
	<div class="container">
		<div class="row">
			<div class="span3" style="margin-top:60px">
				<div  style="padding:15px">
					<ul class="nav nav-list">
						<li class="nav-header" style="font-size:14px">${sessionScope.userProject.project.name }</li>
						<li class="divider"></li>
						<li><a href="project.jspx"><i class="icon-home"></i>最新动态</a></li>
						<li><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>
						<li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
						<li><a href="files.jspx"><i class="icon-file"></i>文件共享</a></li>
						<li class="active"><a href="contact.jspx"><i class="icon-white icon-user"></i>联系人</a></li>
						<li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="set.jspx"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>				
			</div>
			<div class="span9" style="margin-top:80px">				
				<form action="contact.jspx?m=edit&id=${contact.id }" class="form-horizontal" id ="myform" method = "post">
					<fieldset>
						<legend>编辑联系人</legend>
						<div class="control-group">
							<label class="control-label"for="input01">姓名</label>
							<div class="controls">
								<input type="text" class="span5" id=""  value = "${contact.name }" name ="name"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">公司</label>
							<div class="controls">
								<input class="span5" id="" type="text" value = "${contact.company}" name ="company"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">手机</label>
							<div class="controls">
								<input class="span5" id="" type="text" value = "${contact.cellphone}" name ="cellphone"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">固话</label>
							<div class="controls">
								<input class="span5" id="" type="text" value = "${contact.phone}" name ="phone"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">邮箱</label>
							<div class="controls">
								<input class="span5" id="" type="text" value = "${contact.email}" name ="email"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">地址</label>
							<div class="controls">
								<input class="span5" id="" type="text" value = "${contact.address}" name ="address"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">主页</label>
							<div class="controls">
								<input class="span5" id="" type="text" value = "${contact.homepage}" name ="homepage"/>
								<p class="help-block">http://www.xxx.com</p>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">微博</label>
							<div class="controls">
								<select class="span2" name ="weibotype">
									<option value="${weibotype}" selected="selected" ></option>
									<option value="">新浪微博</option>
									<option value="">腾讯微博</option>
									<option value="">Twitter</option>
								</select>
								<div class="input-prepend">
									<span class="add-on">@</span><input class="span2" id="" type="text" value = "${weibocontent}" name ="weibo"/>
								</div>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">简介</label>
							<div class="controls">
								<textarea class="span5" rows="3" name ="textarea">${contact.introduction }</textarea>
							</div>
						</div>
						<div class="form-actions">
							<button class="btn btn-primary" type="button" id ="btnSave">保存</button>
							<button class="btn" onclick="location.back()">返回</button>
						
						</div>
					</fieldset>					
				</form>
			</div>
		</div>
	</div>
	
		<script type = "text/javascript" src = "static/js/jquery.js"></script>
		<script type = "text/javascript">
			$(document).ready(function(){
				$("#btnSave").click(function(){
					$("#myform").submit();
				});
			});
		
		</script>
	
	
	
</body>
</html>